#!../../common/bats/bin/bats
# -*-sh-*-

load ../../common/test_helper_functions || exit 1
source ../../common/functions || exit 1

family=$LMOD_FAMILY_COMPILER

@test "[Compilers] debugger man page ($family)" {
    if [ "$family" = "gnu" ];then
        run man -w gdb
        assert_success
    elif [ "$family" = "intel" ];then
        run man -w gdb-ia
        assert_success
    fi
}

@test "[Compilers] debugger availability ($family)" {
    if [ "$family" = "gnu" ];then
        run which gdb
        assert_success

        run gdb --version
        assert_success
    elif [ "$family" = "intel" ];then
        run which gdb-ia
        assert_success

        run gdb-ia --version
        assert_success
    fi
}





